package com.pig4cloud.pig.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 柜体用户信息
 *
 * @author pig
 * @date 2025-08-02 11:35:56
 */
@Data
@TableName("pr_user")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "柜体用户信息")
public class PrUserEntity extends Model<PrUserEntity> {

 
	/**
	* id
	*/
    @TableId(type = IdType.AUTO)
    @Schema(description="id")
    private Integer id;

	/**
	* 用户id
	*/
    @Schema(description="用户id")
    private String userId;

	/**
	* 真实姓名
	*/
    @Schema(description="真实姓名")
    private String realName;

	/**
	* 用户名称
	*/
    @Schema(description="用户名称")
    private String userName;

	/**
	* 密码
	*/
    @Schema(description="密码")
    private String password;

	/**
	* 人脸数据
	*/
    @Schema(description="人脸数据")
    private String faceData;

	/**
	* 最后修改时间
	*/
    @Schema(description="最后修改时间")
    private LocalDateTime lastEditTime;

	/**
	* 是否为管理员
	*/
    @Schema(description="是否为管理员")
    private String isAdmin;

	/**
	* 手机号
	*/
    @Schema(description="手机号")
    private String telephone;

	/**
	 * 柜体id
	 */
	@Schema(description="柜体id")
	private Long deviceId;
	/**
	 * 柜体名称
	 */
	@Schema(description="柜体名称")
	private String deviceName;
	/**
	 * 柜体标识
	 */
	@Schema(description="柜体标识")
	private String deviceSign;


	@TableField(exist = false)
	private String goodsId;
	@TableField(exist = false)
	private List<PrUserRfidInfoEntity> prUserRfidInfoEntities;
	/**
	 * 是否在线
	 */
	@TableField(exist = false)
	private String online;
	@TableField(exist = false)
	private Boolean enabled;
}
